<extend name="_layout/main" />
<block name="content">


<div id="mws-container" class="clearfix">
<div class="container">



<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span class="mws-i-24 i-list" style="float: left;display: inline">品牌首页</span>

        <span style="float: right;display: inline;"><a style="color: orange;text-decoration: none" href="{:U('add')}">添加品牌</a></span>

        <div style="clear: both"></div>

    </div>
    <div class="mws-panel-body">
        <notempty name="datas">
        <table>
            <thead>
            <tr>
                <td>No.</td>
                <td>品牌名称</td>
                <td class="pp">上级分类</td>
                <td>操作</td>
            </tr>
            </thead>
            <tbody>
            <volist name="datas" id="data">
                <tr>
                    <td>{$data.id}</td>
                    <td>
                        {:str_repeat('-',$data['level']*5)}{$data.bname}
                    </td>
                    <td>{$data.parentid}</td>
                    <td><a href="{:U('Admin/Brand/edit?id='.$data['id'])}">编辑</a>
                        <a onclick="return confirm('确定要删除吗？底下的文章也没了啊');" href="{:U('Admin/Brand/del?id='.$data['id'])}"
                           class="templatemo-edit-btn">删除</a></td>
                </tr>
            </volist>
            </tbody>
        </table>
            <else/>

            <h3 style="width: 30%;margin: 0 auto;text-align: center">暂时没有数据</h3>
</notempty>
    </div>
</div>


</div>

<div id="mws-footer">
    Copyright &copy; 2014.Company name All rights reserved.<a target="_blank" href="http://www.17sucai.com/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a>
</div>

</div>

</block>